import { request } from "@/utils/http";
// 获取角色列表
export const reqGetPageList = (page: number, limit: number, searchObj: string) => {
    return request({
        url: `/admin/acl/role/${page}/${limit}`,
        method: 'get',
        params: searchObj // url查询字符串或表单键值对
    })
}
// 添加一个新角色
export const reqAddRole = (role: any) => {
    return request({
        url: '/admin/acl/role/save',
        method: 'post',
        data: role
    })
}